﻿namespace = shogunate_bookmark

# Historical House Feud
shogunate_bookmark.8300 = {
	scope = none
	hidden = yes

	immediate = {

		# Minamoto vs Taira

		if = {
			limit = {
				game_start_date >= 1180.5.5									# Prince Mochihito's Order
				game_start_date <  1185.4.25								# Battle of Dan-no-ura
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10120075											# Minamoto Yoritomo
				CHAR2 = 10110025											# Taira Kiyomori
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10120084											# Minamoto Yoshinaka
				CHAR2 = 10110025											# Taira Kiyomori
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10120111											# Takeda Nobuyoshi
				CHAR2 = 10110025											# Taira Kiyomori
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10120113											# Yasuda Yoshisada
				CHAR2 = 10110025											# Taira Kiyomori
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12515000											# Yamamoto Yoshitsune
				CHAR2 = 10110025											# Taira Kiyomori
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12420102											# Toki Mitsunaga
				CHAR2 = 10110025											# Taira Kiyomori
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10120072											# Minamoto Yukiie
				CHAR2 = 10110025											# Taira Kiyomori
			}
		}

		# Hojo vs Ashikaga

		if = {
			limit = {
				game_start_date >= 1333.7.4									# Fall of Kamakura Shogunate
				game_start_date <  1353.6.21								# Hojo Tokiyuki's death
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10132313											# Hojo Tokiyuki
				CHAR2 = 12139028											# Ashikaga Takauji
			}
		}

		# Satake [Yamairi] vs Satake [Head House]

		if = {
			limit = {
				game_start_date >= 1407.10.22								# Start of Yamairi Rebellion
				game_start_date <  1504.1.1									# Satake Ujiyoshi's death
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 12122200											# Satake Tomoyoshi
				CHAR2 = 10010816											# Satake Yoshihito
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122205											# Satake Yoshisato
				CHAR2 = 10010816											# Satake Yoshihito
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122206											# Satake Sukeyoshi
				CHAR2 = 10010816											# Satake Yoshihito
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122210											# Satake Yoshitomo
				CHAR2 = 10010816											# Satake Yoshihito
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122210											# Satake Yoshitomo
				CHAR2 = 10010815											# Satake Yoshitoshi
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122210											# Satake Yoshitomo
				CHAR2 = 10010808											# Satake Yoshiharu
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122211											# Satake Yoshizane
				CHAR2 = 10010808											# Satake Yoshiharu
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122216											# Satake Yoshifuji
				CHAR2 = 10010808											# Satake Yoshiharu
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122216											# Satake Yoshifuji
				CHAR2 = 10010803											# Satake Yoshikiyo
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 12122220											# Satake Ujiyoshi
				CHAR2 = 10010803											# Satake Yoshikiyo
			}
		}

		# Ashikaga [Kamakura] vs Uesugi [Yamanouchi]

		if = {
			limit = {
				game_start_date >= 1438.8.1									# Start of Eikyo War
				game_start_date <  1478.1.1									# End of Kyotoku War
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10040061											# Ashikaga Mochiuji
				CHAR2 = 10017020											# Uesugi Norizane
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040059											# Ashikaga Shigeuji
				CHAR2 = 10017022											# Uesugi Fusaaki
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040059											# Ashikaga Shigeuji
				CHAR2 = 10017024											# Uesugi Akisada
			}
		}

		# Hosokawa vs Ouchi

		if = {
			limit = {
				game_start_date >= 1457.1.1									# Ouchi Norihiro vs Shogunate
				game_start_date <  1557.1.1									# Fall of Ouchi clan
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10040543											# Hosokawa Katsumoto
				CHAR2 = 10057008											# Ouchi Norihiro
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040543											# Hosokawa Katsumoto
				CHAR2 = 10057007											# Ouchi Masahiro
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040544											# Hosokawa Masamoto
				CHAR2 = 10057007											# Ouchi Masahiro
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040544											# Hosokawa Masamoto
				CHAR2 = 10057001											# Ouchi Yoshioki
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040567											# Hosokawa Sumiyuki
				CHAR2 = 10057001											# Ouchi Yoshioki
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040501											# Hosokawa Sumimoto
				CHAR2 = 10057001											# Ouchi Yoshioki
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040566											# Hosokawa Takakuni
				CHAR2 = 10057001											# Ouchi Yoshioki
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040500											# Hosokawa Harumoto
				CHAR2 = 10057001											# Ouchi Yoshioki
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040500											# Hosokawa Harumoto
				CHAR2 = 10057002											# Ouchi Yoshitaka
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040500											# Hosokawa Harumoto
				CHAR2 = 10064003											# Ouchi Yoshinaga
			}
		}

		# Shiba vs Asakura

		if = {
			limit = {
				game_start_date >= 1477.12.16								# End of Onin War
				game_start_date <  1555.1.1									# Shiba Yoshikane's exile
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10029019											# Shiba Yoshitoshi
				CHAR2 = 10030007											# Asakura Takakage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029021											# Shiba Yoshihiro
				CHAR2 = 10030007											# Asakura Takakage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029021											# Shiba Yoshihiro
				CHAR2 = 10030008											# Asakura Ujikage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029021											# Shiba Yoshihiro
				CHAR2 = 10030010											# Asakura Sadakage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029021											# Shiba Yoshihiro
				CHAR2 = 10030000											# Asakura Takakage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029001											# Shiba Yoshitatsu
				CHAR2 = 10030000											# Asakura Takakage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029000											# Shiba Yoshimune
				CHAR2 = 10030000											# Asakura Takakage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029000											# Shiba Yoshimune
				CHAR2 = 10030011											# Asakura Yoshikage
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10029024											# Shiba Yoshikane
				CHAR2 = 10030011											# Asakura Yoshikage
			}
		}

		# Uesugi [Ogigayatsu] vs Uesugi [Yamanouchi]

		if = {
			limit = {
				game_start_date >= 1487.1.1									# Start of Chokyo War
				game_start_date <  1545.1.1									# Reconciliation
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10017040											# Uesugi Sadamasa
				CHAR2 = 10017024											# Uesugi Akisada
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10017043											# Uesugi Tomoyoshi
				CHAR2 = 10017024											# Uesugi Akisada
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10017043											# Uesugi Tomoyoshi
				CHAR2 = 10040060											# Uesugi Akizane
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10017043											# Uesugi Tomoyoshi
				CHAR2 = 10017026											# Uesugi Norifusa
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10018000											# Uesugi Tomooki
				CHAR2 = 10017026											# Uesugi Norifusa
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10018000											# Uesugi Tomooki
				CHAR2 = 10040053											# Uesugi Norihiro
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10018000											# Uesugi Tomooki
				CHAR2 = 10017000											# Uesugi Norimasa
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10018001											# Uesugi Tomosada
				CHAR2 = 10017000											# Uesugi Norimasa
			}
		}

		# Hosokawa [Sumimoto/Harumoto] vs Hosokawa [Takakuni]

		if = {
			limit = {
				game_start_date >= 1507.8.1									# Hosokawa Masamoto's death
				game_start_date <  1531.7.21								# Battle of Daimotsu
			}

			shogunate_historical_feud_effect = {
				CHAR1 = 10040501											# Hosokawa Sumimoto
				CHAR2 = 10040566											# Hosokawa Takakuni
			}
			shogunate_historical_feud_effect = {
				CHAR1 = 10040500											# Hosokawa Harumoto
				CHAR2 = 10040566											# Hosokawa Takakuni
			}
		}

	}
}

# Historical Feud (start)
shogunate_bookmark.8310 = {
	scope = character
	hidden = yes

	immediate = {

		house_feud_start_effect = {
			ACTOR    = scope:actor
			TARGET   = scope:target
			REASON   = head_rivalry
			ATTACKER = scope:actor
			VICTIM   = scope:target
		}

	}
}
